div{
    float: left;
    width: 50%;
    height: 100px;
}

div:nth-child(1){
    background-color:pink;
}

div:nth-child(2){
    background-color:purple;
}